﻿namespace TestClasses
{
    using System.Collections.Generic;

    public class ConnectorManager : IConnectorManager
    {
        public ConnectorManager(IConnectorRepository repository)
        {
            Repository = repository;
        }

        public IConnectorRepository Repository { get; set; }

        public IList<IConnector> GetConnectors(string filter)
        {
            return Repository.GetConnectors(filter);
        }

        public IConnector AddConnector(IConnector connector)
        {
            return Repository.AddConnector(connector);
        }

        public void RemoveConnector(IConnector connector)
        {
            Repository.RemoveConnector(connector);
        }

        public IList<IConnector> GetConnectors()
        {
            return GetConnectors(null);
        }
    }
}
